package org.example.annotation.conf;

import org.example.annotation.properties.AnnotationProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 *
 * @author joey
 */
@Configuration
@EnableConfigurationProperties(AnnotationProperties.class)
@ConditionalOnProperty(
                 prefix = "my.annotation",
                 name = "logEnable",
                 havingValue = "true"
         )
@Import( {
        AnnotationConfig.class
})
public class AnnotationAutoConfig {

}
